# class bcolors:
#     HEADER = '\033[95m'
#     OKBLUE = '\033[94m'
#     OKGREEN = '\033[92m'
#     WARNING = '\033[93m'
#     FAIL = '\033[91m'
#     ENDC = '\033[0m'
#     BOLD = '\033[1m'
#     UNDERLINE = '\033[4m'


# results = list(range(0, 255))
# a = []
# for i in range(0, 255):
#     t = '\033[91m' + str(i) + '\033[0m'
#     # print(len(t))
#     a.append(t)


# def ip_info(a):
#     n = 16
#     for i in range(len(a)):
#         # print(results[i], end=' ')
#         print('{0:>12}'.format(a[i]), end=' '*2)
#         if (i + 1) % n == 0:
#             print('\n', end='')


# ip_info(a)

a = "172.16.61.1"
if len(a) > 0 and len(a.split('.')) == 4 and a.split('.')[-1] == '':
    pass

else:
    # 消息框提醒
    # QMessageBox.information(self, "温馨提示", "请输入正确的IP网段信息!")
    print("22")
